package ProxyPattern;

public class CircleProxy implements Shape{

    private Circle circle;

    public void draw() {
        preDraw();
        circle.draw();
        postDraw();
    }

    public CircleProxy() {
        this.circle = new Circle();
    }

    private void preDraw(){
        System.out.println("this is pre function");
    }

    private void postDraw(){
        System.out.println("this is post function");
    }
}
